package main

import "fmt"

func main() {
	var a = student{
		people: people{"念威", 21},
		class:  0,
	}

	b := student{
		people: people{"念威", 21},
		class:  0,
	}
	fmt.Println(a, b, b.name)
}

type people struct {
	name string
	age  int
}
type student struct {
	people
	class int
}
